package xdu.lz.stage3_classloader.chapter2_classloader;



public class BootClassLoader {
    public static void main(String[] args) {
        System.out.println("根加载器：");
        System.out.println(System.getProperty("sun.boot.class.path"));
        System.out.println("扩展类加载器：");
        System.out.println(System.getProperty("java.ext.dirs"));
        System.out.println("系统加载器：");
        System.out.println(BootClassLoader.class.getClassLoader());



        java.lang.String str1 = new java.lang.String();
        String str2 = new String();
        System.out.println(str1.getClass().getClassLoader());
        System.out.println(str2.getClass().getClassLoader());
    }
}
